<template>
	<view class="page">
		<view class="sousuo">
			<view class="input-wrap" @click="naviTo">
				<icon type="search" size="16" class="image" />
				<input class="input" type="text" value="" placeholder="Dribbble"
					placeholder-style="text-align:left;color:#333" />
				<!-- 图标 -->
				<icon type="clear" size="16" class="imagess" />
			</view>
			<view class="qxan">
				<text class="qx">取消</text>
			</view>
		</view>
		<view class="list">
			<block v-for="(item,index) in appList">
				<!-- 这里就是重复的代码 -->
				<view class="item" :key='index'>
					<view class="top flex flex-x-between flex-y-center">
						<view class="left">
							<image :src="item.logo"></image>
							<view class="content">
								<view class="wz1">{{item.title}}</view>
								<view class="wz2">{{item.time}}</view>
								<view class="wz3">{{item.content}}</view>
							</view>
						</view>
						<view class="right">
							<!-- <button v-if="index!==3">获取</button>
							<button v-else>$12.00</button> -->
							<button>{{index!==3?'获取':'$12.00'}}</button>
						</view>
					</view>
					<view class="tp flex flex-x-between">
						<block v-for="(a1,a2) in item.ttp">
							<!-- <image src="../../../static/page/图片1.png" mode=""></image> -->
							<!-- <image src="../../../static/page/图片2.png" mode=""></image> -->
							<!-- <image src="../../../static/page/图片3.png" mode=""></image> -->
							<image :src="a1"></image>

						</block>
					</view>
				</view>
				<!-- 这里就是重复的代码 -->
			</block>

		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				appList: [{
					logo: '../../../static/page/头像(1).png',
					title: 'Dribbble',
					time: '摄影与录像',
					content: '★★★★★  134',
					ttp: ['../../../static/page/图片1.png',
						'../../../static/page/图片2.png',
						'../../../static/page/图片3.png',
					],
				}, {
					logo: '../../../static/page/头像ttp.png',
					title: 'Craftle - A Dribbb',
					time: '参考',
					content: '',
					ttp: ['../../../static/page/ttp(1).png',
						'../../../static/page/ttp2.png',
						'../../../static/page/ttp3.png',
					]
				}, {
					logo: '../../../static/page/ttp4.png',
					title: 'Craftle - A Dribbb',
					time: '摄影与录像',
					content: '★★★★★  6',
					ttp: ['../../../static/page/ttp11.png',
						'../../../static/page/ttp(1).png',
						'../../../static/page/ttp3.png',
					]
				}, {
					logo: '../../../static/page/a1.png',
					title: 'Craftle - A Dribbb',
					time: '摄影与录像',
					content: '★★★★★  6',
					ttp: ['../../../static/page/a2.png',
						'../../../static/page/a3.png',
						'../../../static/page/a5.png',
					]



				}],
			};
		}
	}
</script>

<style lang="scss">
	.page {
		width: 100%;
		height: auto;

		.sousuo {
			width: 100%;
			height: 100rpx;
			display: flex;
			justify-content: center;
			align-items: center;
			border-bottom: 1px solid #f2f2f2;

			.input-wrap {
				width: 581rpx;
				height: 72rpx;
				border-radius: 16rpx;
				background-color: #f2f2f2;
				display: flex;
				align-items: center;
				justify-content: space-between;

				.image {
					margin-left: 25rpx;
				}

				.input {
					color: #333;
					margin-left: -80rpx;
				}

				.imagess {
					margin-right: 18rpx;
				}

			}

			.qxan {
				margin-left: 36rpx;

				.qx {
					color: #007AFF;
				}
			}
		}

		.list {
			width: 100%;
			height: auto;

			.item {
				width: 670rpx;
				margin: 15px auto;

				.top {
					.left {
						display: flex;

						image {
							height: 124rpx;
							width: 124rpx;
						}

						.content {
							display: flex;
							flex-direction: column;
							margin-left: 20rpx;

							.wz1 {
								font-size: 33rpx;
							}

							.wz2 {
								color: #cecece;
								font-size: 24rpx;
							}

							.wz3 {
								color: #cecece;
								font-size: 24rpx;
							}

						}
					}

					.right {
						display: flex;

						// align-content: flex-end;
						button {
							height: 60rpx;
							width: 158rpx;
							line-height: 60rpx;
							color: #007AFF;
							border-radius: 30rpx;
							font-weight: 700;
							font-size: 28rpx;
						}
					}
				}

				.tp {
					margin-top: 30rpx;

					image {
						height: 379rpx;
						width: 212rpx;
					}
				}
			}
		}
	}
</style>
